<table width="186" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="images/logomenu.gif" border="0"></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF" align="center" style="border: 1px solid #2A4DAB;">
    <table width="90%" cellpadding="0" cellspacing="0" border="0">
      <tr align="left"><td height="20"><a href="login.php?act=select" target="_self"><?php echo $LANGUAGE['menu_select'];?></a></td><td height="20"><a href="login.php?act=login" target="_self"><?php echo $LANGUAGE['menu_login'];?></a></td></tr>
      <tr align="left"><td height="20"><a href="help.php?act=terms" target="_self"><?php echo $LANGUAGE['menu_register'];?></a></td><td height="20"><a href="userlist.php" target="_self"><?php echo $LANGUAGE['menu_userlist'];?></a></td></tr>
      <tr align="left"><td height="20"><a href="admin_login.php" target="_self"><?php echo $LANGUAGE['menu_admin'];?></a></td><td height="20"><a href="index.php" target="_self"><?php echo $LANGUAGE['menu_index'];?></a></td></tr>
    </table>
    </td>
  </tr>
</table>
<br>
<?php
if(if_adminlogin() == "y"){
?>
<table width="186" border="0" cellspacing="0" cellpadding="0">
  <tr onClick="ToggleNode(menu_admin,arrow_admin,'images/arrow02top.gif','images/arrow02bottom.gif')" style="cursor: hand">
    <td height="21" background="images/bg_menu02.gif">
      <table width="100%" height="21" border="0" cellspacing="0" cellpadding="0" onMouseOut="this.style.color='#D9E1F6'" onMouseOver="this.style.color='#FFFFFF'" style="color:#D9E1F6">
        <tr><td align="left"><b>&nbsp;<?php echo $LANGUAGE['menu_cp_admin'];?></b></td><td align="right"><img id="arrow_admin" src="images/arrow02top.gif" border=0 align="absmiddle">&nbsp;</td></tr>
      </table>
    </td>
  </tr>
  <tr id="menu_admin">
    <td bgcolor="#FFFFFF" align="center" style="border: 1px solid #2A4DAB;">
      <table width="90%" cellpadding="0" cellspacing="0" border="0">
        <tr><td height="20"><a href="admin_amend.php" target="_self"><?php echo $LANGUAGE['menu_cp_general'];?></a></td></tr>
        <tr><td height="20"><a href="admin_forbidip.php" target="_self"><?php echo $LANGUAGE['menu_cp_forbidip'];?></a></td></tr>
        <tr><td height="20"><a href="admin_user.php" target="_self"><?php echo $LANGUAGE['menu_cp_manageuser'];?></a></td></tr>
        <tr><td height="20"><a href="admin_system.php?act=general" target="_self"><?php echo $LANGUAGE['menu_cp_sysinfo'];?></a></td></tr>
        <tr><td height="20"><a href="admin_login.php?act=logout"><?php echo $LANGUAGE['menu_cp_exit'];?></a></td></tr>
      </table>
    </td>
  </tr>
</table>
<br>
<?php
}
if(if_adminlogin() == "y" || if_userlogin() == "y"){
?>
<table width="186" border="0" cellspacing="0" cellpadding="0">
  <tr onClick="ToggleNode(menu_login,arrow_login,'images/arrow02top.gif','images/arrow02bottom.gif')" style="cursor: hand">
    <td height="21" background="images/bg_menu02.gif">
      <table width="100%" height="21" border="0" cellspacing="0" cellpadding="0" onMouseOut="this.style.color='#D9E1F6'" onMouseOver="this.style.color='#FFFFFF'" style="color:#D9E1F6">
        <tr><td align="left"><b>&nbsp;<?php echo $LANGUAGE['menu_user_admin'];?></b></td><td align="right"><img id="arrow_login" src="images/arrow02top.gif" border=0 align="absmiddle">&nbsp;</td></tr>
      </table>
    </td>
  </tr>
  <tr id="menu_login">
    <td bgcolor="#FFFFFF" align="center" style="border: 1px solid #2A4DAB;">
      <table width="90%" cellpadding="0" cellspacing="0" border="0">
      <tr align="center">
        <td height="20" colspan="2">
<?php
if(if_userlogin() == "y"){
   echo "<font class='salient' title='".$LANGUAGE['menu_user_currentuser'].$_SESSION['sess_username']."'>".$LANGUAGE['menu_user_welcome'].bite_str($_SESSION['sess_username'],1,12)."</font>";
}else{
   echo "<font class='salient'>".$LANGUAGE['menu_user_anonymous']."</font>";
}
?>
        </td>
      </tr>
      <tr align="center"><td height="1" colspan="2" bgcolor="#1151BF"></td></tr>
        <tr><td height="20"><a href="general.php?user=<?php echo $_SESSION['sess_username'];?>" target="_self"><?php echo $LANGUAGE['menu_user_mystats'];?></a></td></tr>
        <tr><td height="20"><a href="amend.php" target="_self"><?php echo $LANGUAGE['menu_user_profileinfo'];?></a></td></tr>
        <tr><td height="20"><a href="getcode.php" target="_self"><?php echo $LANGUAGE['menu_user_getcode'];?></a></td></tr>
        <tr><td height="20"><a href="login.php?act=logout" target="_self"><?php echo $LANGUAGE['menu_user_exit'];?></a></td></tr>
      </table>
    </td>
  </tr>
</table>
<br>
<?php
}
?>
<table width="186" border="0" cellspacing="0" cellpadding="0">
  <tr onClick="ToggleNode(menu_current,arrow_current,'images/arrow02top.gif','images/arrow02bottom.gif')" style="cursor: hand">
    <td height="21" background="images/bg_menu02.gif">
      <table width="100%" height="21" border="0" cellspacing="0" cellpadding="0" onMouseOut="this.style.color='#D9E1F6'" onMouseOver="this.style.color='#FFFFFF'" style="color:#D9E1F6">
        <tr><td align="left"><b>&nbsp;<?php echo $LANGUAGE['menu_select_view'];?></b></td><td align="right"><img id="arrow_current" src="images/arrow02top.gif" border=0 align="absmiddle">&nbsp;</td></tr>
      </table>
    </td>
  </tr>
  <tr id="menu_current">
    <td bgcolor="#FFFFFF" align="center" style="border: 1px solid #2A4DAB;">
    <table width="90%" cellpadding="0" cellspacing="0" border="0">
      <tr align="center">
        <td height="20" colspan="2">
<?php
if(if_selectuser() == "y"){
   echo "<font class='salient' title='".$LANGUAGE['menu_currentuser'].$_SESSION['sess_select']."'>".bite_str($_SESSION['sess_select'],1,20)."</font>";
}else{
   echo "<a href='login.php?act=select' target='_self'>".$LANGUAGE['menu_select']."</a>";
}
?>
        </td>
      </tr>
    </table>
    </td>
  </tr>
</table>
<br>
<table width="186" border="0" cellspacing="0" cellpadding="0">
  <tr onClick="ToggleNode(menu_general,arrow_general,'images/arrow01top.gif','images/arrow01bottom.gif')" style="cursor: hand">
    <td height="21" background="images/bg_menu01.gif">
      <table width="100%" height="21" border="0" cellspacing="0" cellpadding="0" onMouseOut="this.style.color='#D9E1F6'" onMouseOver="this.style.color='#FFFFFF'" style="color:#D9E1F6">
        <tr><td align="left"><b>&nbsp;<?php echo $LANGUAGE['menu_overview'];?></b></td><td align="right"><img id="arrow_general" src="images/arrow01top.gif" border=0 align="absmiddle">&nbsp;</td></tr>
      </table>
    </td>
  </tr>
  <tr id="menu_general">
    <td bgcolor="#FFFFFF" align="center" style="border: 1px solid #2A4DAB;">
      <table width="90%" cellpadding="0" cellspacing="0" border="0">
        <tr><td height="20"><a href="general.php" target="_self"><?php echo $LANGUAGE['menu_general'];?></a></td></tr>
      </table>
    </td>
  </tr>
</table>
<br>
<table width="186" border="0" cellspacing="0" cellpadding="0">
  <tr onClick="ToggleNode(menu_last,arrow_last,'images/arrow01top.gif','images/arrow01bottom.gif')" style="cursor: hand">
    <td height="21" background="images/bg_menu01.gif">
      <table width="100%" height="21" border="0" cellspacing="0" cellpadding="0" onMouseOut="this.style.color='#D9E1F6'" onMouseOver="this.style.color='#FFFFFF'" style="color:#D9E1F6">
        <tr><td align="left"><b>&nbsp;<?php echo $LANGUAGE['menu_near_stats'];?></b></td><td align="right"><img id="arrow_last" src="images/arrow01top.gif" border=0 align="absmiddle">&nbsp;</td></tr>
      </table>
    </td>
  </tr>
  <tr id="menu_last">
    <td bgcolor="#FFFFFF" align="center" style="border: 1px solid #2A4DAB;">
      <table width="90%" cellpadding="0" cellspacing="0" border="0">
        <tr><td height="20"><a href="collect.php?act=year" target="_self"><?php echo sprintf($LANGUAGE['menu_near_year'],$SETTING['howyear']);?></a></td></tr>
        <tr><td height="20"><a href="collect.php?act=month" target="_self"><?php echo $LANGUAGE['menu_near_month'];?></a></td></tr>
        <tr><td height="20"><a href="collect.php?act=day" target="_self"><?php echo $LANGUAGE['menu_near_day'];?></a></td></tr>
        <tr><td height="20"><a href="collect.php?act=hour" target="_self"><?php echo $LANGUAGE['menu_near_hour'];?></a></td></tr>
      </table>
    </td>
  </tr>
</table>
<br>
<table width="186" border="0" cellspacing="0" cellpadding="0">
  <tr onClick="ToggleNode(menu_collect,arrow_collect,'images/arrow01top.gif','images/arrow01bottom.gif')" style="cursor: hand">
    <td height="21" background="images/bg_menu01.gif">
      <table width="100%" height="21" border="0" cellspacing="0" cellpadding="0" onMouseOut="this.style.color='#D9E1F6'" onMouseOver="this.style.color='#FFFFFF'" style="color:#D9E1F6">
        <tr><td align="left"><b>&nbsp;<?php echo $LANGUAGE['menu_total_stats'];?></b></td><td align="right"><img id="arrow_collect" src="images/arrow01top.gif" border=0 align="absmiddle">&nbsp;</td></tr>
      </table>
    </td>
  </tr>
  <tr id="menu_collect">
    <td bgcolor="#FFFFFF" align="center" style="border: 1px solid #2A4DAB;">
      <table width="90%" cellpadding="0" cellspacing="0" border="0">
        <tr><td height="20"><a href="collect.php?act=totalmonth" target="_self"><?php echo $LANGUAGE['menu_total_month'];?></a></td></tr>
        <tr><td height="20"><a href="collect.php?act=totalday" target="_self"><?php echo $LANGUAGE['menu_total_day'];?></a></td></tr>
        <tr><td height="20"><a href="collect.php?act=totalhour" target="_self"><?php echo $LANGUAGE['menu_total_hour'];?></a></td></tr>
      </table>
    </td>
  </tr>
</table>
<br>
<table width="186" border="0" cellspacing="0" cellpadding="0">
  <tr onClick="ToggleNode(menu_visitor,arrow_visitor,'images/arrow01top.gif','images/arrow01bottom.gif')" style="cursor: hand">
    <td height="21" background="images/bg_menu01.gif">
      <table width="100%" height="21" border="0" cellspacing="0" cellpadding="0" onMouseOut="this.style.color='#D9E1F6'" onMouseOver="this.style.color='#FFFFFF'" style="color:#D9E1F6">
        <tr><td align="left"><b>&nbsp;<?php echo $LANGUAGE['menu_details_stats'];?></b></td><td align="right"><img id="arrow_visitor" src="images/arrow01top.gif" border=0 align="absmiddle">&nbsp;</td></tr>
      </table>
    </td>
  </tr>
  <tr id="menu_visitor">
    <td bgcolor="#FFFFFF" align="center" style="border: 1px solid #2A4DAB;">
      <table width="90%" cellpadding="0" cellspacing="0" border="0">
        <tr><td height="20"><a href="collect.php?act=visitor" target="_self"><?php echo $LANGUAGE['menu_details_visitor'];?></a></td></tr>
        <tr><td height="20"><a href="collect.php?act=online" target="_self"><?php echo $LANGUAGE['menu_details_online'];?></a></td></tr>
      </table>
    </td>
  </tr>
</table>
<br>
<table width="186" border="0" cellspacing="0" cellpadding="0">
  <tr onClick="ToggleNode(menu_client,arrow_client,'images/arrow01top.gif','images/arrow01bottom.gif')" style="cursor: hand">
    <td height="21" background="images/bg_menu01.gif">
      <table width="100%" height="21" border="0" cellspacing="0" cellpadding="0" onMouseOut="this.style.color='#D9E1F6'" onMouseOver="this.style.color='#FFFFFF'" style="color:#D9E1F6">
        <tr><td align="left"><b>&nbsp;<?php echo $LANGUAGE['menu_client_stats'];?></b></td><td align="right"><img id="arrow_client" src="images/arrow01top.gif" border=0 align="absmiddle">&nbsp;</td></tr>
      </table>
    </td>
  </tr>
  <tr id="menu_client">
    <td bgcolor="#FFFFFF" align="center" style="border: 1px solid #2A4DAB;">
      <table width="90%" cellpadding="0" cellspacing="0" border="0">
        <tr><td height="20"><a href="collect.php?act=os" target="_self"><?php echo $LANGUAGE['menu_client_os'];?></a></td></tr>
        <tr><td height="20"><a href="collect.php?act=browser" target="_self"><?php echo $LANGUAGE['menu_client_browser'];?></a></td></tr>
        <tr><td height="20"><a href="collect.php?act=language" target="_self"><?php echo $LANGUAGE['menu_client_language'];?></a></td></tr>
        <tr><td height="20"><a href="collect.php?act=colordepth" target="_self"><?php echo $LANGUAGE['menu_client_colordepth'];?></a></td></tr>
        <tr><td height="20"><a href="collect.php?act=screensize" target="_self"><?php echo $LANGUAGE['menu_client_screensize'];?></a></td></tr>
        <tr><td height="20"><a href="collect.php?act=timezone" target="_self"><?php echo $LANGUAGE['menu_client_timezone'];?></a></td></tr>
      </table>
    </td>
  </tr>
</table>
<br>
<table width="186" border="0" cellspacing="0" cellpadding="0">
  <tr onClick="ToggleNode(menu_search,arrow_search,'images/arrow01top.gif','images/arrow01bottom.gif')" style="cursor: hand">
    <td height="21" background="images/bg_menu01.gif">
      <table width="100%" height="21" border="0" cellspacing="0" cellpadding="0" onMouseOut="this.style.color='#D9E1F6'" onMouseOver="this.style.color='#FFFFFF'" style="color:#D9E1F6">
        <tr><td align="left"><b>&nbsp;<?php echo $LANGUAGE['menu_search_stats'];?></b></td><td align="right"><img id="arrow_search" src="images/arrow01top.gif" border=0 align="absmiddle">&nbsp;</td></tr>
      </table>
    </td>
  </tr>
  <tr id="menu_search">
    <td bgcolor="#FFFFFF" align="center" style="border: 1px solid #2A4DAB;">
      <table width="90%" cellpadding="0" cellspacing="0" border="0">
        <tr><td height="20"><a href="collect.php?act=searchfrom" target="_self"><?php echo $LANGUAGE['menu_search_searchfrom'];?></a></td></tr>
        <tr><td height="20"><a href="collect.php?act=searchkeyword" target="_self"><?php echo $LANGUAGE['menu_search_searchkeyword'];?></a></td></tr>
      </table>
    </td>
  </tr>
</table>
<br>
